package com.example.moneybook.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class User {
    @TableId(value = "user_id", type = IdType.ASSIGN_UUID)
    private String userId;  //用户id
    private String openId;  //微信用户唯一标识id
    private String userName;    //用户名
    private String headUrl;     //用户头像地址
    private Date lastTime;      //最后登录时间
}
